package com.movie.ticket.sale.bossassembly.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author muzi
 * @since 2020-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_discount")
public class Discount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券列表 平台均可用 见面票价
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券的金额
     */
    private Double amount;

    /**
     * 所需的积分
     */
    private Integer points;

    /**
     * 过期时间
     */
    private LocalDateTime endDate;

    /**
     * 默认为0
     */
    private Integer userId;

    /**
     * 0：未使用  1：已使用
     */
    private Integer state;


}
